//
//  SVProgessHUDUnity.m
//  ig
//
//  Created by s on 16/5/31.
//  Copyright © 2016年 . All rights reserved.
//

#import "SVProgessHUDUnity.h"
#import "SVProgressHUDSub.h"

//  0代表 ios  1代表androiy
#define  device  0

@implementation SVProgessHUDUnity

+(void)show{
    [SVProgressHUDSub show];
  }
+(void)showDefaultStatus{

  [SVProgressHUDSub showWithStatus:@"正在加载..."];
}
+(void)showWithStatus:(NSString  *)strTem{
    [SVProgressHUDSub showWithStatus:strTem.length?strTem:@"正在加载..."];
}
+(void)showWithProgress:(float)progress andProgressText:(NSString  *)strTem{
   [SVProgressHUDSub showProgress:progress status:strTem];
}
+(void)showInfoWithStatus:(NSString  *)strTem{
   [SVProgressHUDSub showInfoWithStatus:strTem];

}
+(void)showSuccessWithStatus:(NSString  *)strTem{
   [SVProgressHUDSub showSuccessWithStatus:strTem];

}
+(void)showErrorWithStatus:(NSString  *)strTem{
   [SVProgressHUDSub showErrorWithStatus:strTem];

}

+(void)disMiss{
    //     主线程取消圈圈
    dispatch_async(dispatch_get_main_queue(), ^{
        ;
       [SVProgressHUDSub dismiss];
        
    });
    

}
+(void)popActivity{
  //     主线程取消圈圈
        dispatch_async(dispatch_get_main_queue(), ^{
             ;
          [SVProgressHUDSub popActivity];
         
         });
   
}



@end
